 {extend name="extra@admin/content"}
{block name="content"}
<form class="layui-form layui-box" style='padding:25px 30px 20px 0' action="__SELF__" data-auto="true" method="post">

    <div class="layui-form-item">
        <label class="layui-form-label">用户昵称</label>
        <div class="layui-input-block">
            <input name="nickname" value='{$user.nickname|default=""}' required="required" 
                   title="用户昵称" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">电话号码</label>
        <div class="layui-input-block">
            <input name="moblie" value='{$user.moblie|default=""}' required="required" 
                   title="请输入用户电话" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">性别</label>
        <div class="layui-input-block">
        	 {if($user.sex==1)}
        	 	男
        	 {else}
        	 	女
        	 {/if}
        </div>
    </div>
	<div class="layui-form-item">
        <label class="layui-form-label">用户金额</label>
        <div class="layui-input-block">
            <input name="user_money" value='{$user.user_money|default=""}' required="required" disabled 
                   title="用户金额" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">用户积分</label>
        <div class="layui-input-block">
            <input name="pay_points" value='{$user.pay_points|default=""}' required="required" disabled
                   title="用户金额" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">用户注册的门店</label>
        <div class="layui-input-block">
            <input name="store_id" value='{$user.store_id|default=""}' required="required" 
                   title="用户注册的门店" class="layui-input">
        </div>
    </div>

     <div class="layui-form-item">
        <label class="layui-form-label">积分增减</label>
        <div class="layui-input-block">
             <span>
                   <select name="asdes">
                       <option value="1"> 增加</option>
                       <option value="2"> 减去</option>
                   </select>
             </span>
        </div>
        <div class="layui-input-block">
            <input name="asdesmogey" value='0' required="required" 
                   title="请输增减积分" class="layui-input">
        </div>
    </div>

    <div class="hr-line-dashed"></div>
    <div class="layui-form-item text-center">
       <input type='hidden' value='{$user.uid}' name='uid'/>
        <button class="layui-btn" type='submit'>保存数据</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗？" data-close>取消编辑</button>
    </div>

    <script>window.form.render();</script>
</form>
{/block}

